/**
 * 
 */
package t4j.typeinfo.toys;

/**
 * @author sz
 *
 * create time：2012-12-14
 */
public class GenericToyTest {

	public static void main(String[] args) throws Exception {
		Class<FancyToy> ftClass = FancyToy.class;
		
		FancyToy fancyToy = ftClass.newInstance();
		
		Class<? super FancyToy> up = ftClass.getSuperclass();//只能这样使用泛型，不能接受Class<Toy>
		
		Object obj = up.newInstance();
	}
}
